package org.loneranger.p5_attribute_fill;

import org.loneranger.p3_instantiation_aware.bean.IaService;
import org.loneranger.p3_instantiation_aware.config.IaConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * bean的生命周期：属性填充与实例化前后
 */
public class AfTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext(AfConfig.class);
        AfService afService = applicationContext.getBean("afService", AfService.class);

    }
}
